{% extends "c:\Python25\Lib\site-packages\django\bin\myuwaterloo\templates\home.html" %}
{%block title%} {{classtitle|escape}} {%endblock%}

{%block content%}

{%for result in usercoursedata%}
	{{usercoursedata.user}}
{%endfor%}

{%for result in classinfo%}

<div id="content" class="c clear_children">
<div id="content_mainClassdisplay" class="pc cc_tallest">
	{%if result.description%} <!--If statement to get only the first matching item--> 
		<p>
			{{classtitle}}

			{{rating|escape}} (Averaged over {{ratingcount|escape}} user ratings)
			{%if user.is_authenticated%}
				{%if userRating %}
					You rated this course a {{userRating|escape}}.
					Change your Rating:
					<form action="." method="POST">
						{{form.rating}} <input type="submit" value="Rate!!">
					</form>
				{%else%}
					Rate this class:
					<form action="." method="POST">
						{{form.rating}} <input type="submit" value="Rate!!">
					</form>
				{%endif%}
			{%else%}
				Please login to rate this class
			{%endif%}
		</p>
		
		<p>
			{{result.description}}
		</p>
	{%endif%}
	
	<p>
		{{result.section}} {{result.instructor}}  Quest Course Code:{{result.courseid}}
	<p>
	
{%endfor%}
</div>

<div id="content_ratingClassdisplay" class="sc">
	Rating Content
</div>
	
</div>


{%endblock%}





























